home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperTalkHelp.cpt / HyperTalk Tutorial Sampler 1.1 / card_5162.txt < prev    next >
Text File  |  1989-02-26  |  3KB  |  88 lines

  1. -- card: 5162 from stack: in.1
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2619
  5. -- name: 
  6.  
  7.  
  8. -- part 2 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=44 top=27 right=63 bottom=78
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 32462 / 32462
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: New Button
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   play "Boing" tempo 120 a
  23.   push card
  24.   visual zoom open
  25.   go to card id 88379 of stack "Help"
  26. end mouseUp
  27.  
  28.  
  29.  
  30. -- part 4 (button)
  31. -- low flags: 00
  32. -- high flags: 0000
  33. -- rect: left=471 top=301 right=333 bottom=502
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 27009 / 27009
  36. -- text alignment: 1
  37. -- font id: 0
  38. -- text size: 12
  39. -- style flags: 0
  40. -- line height: 16
  41. -- part name: Next
  42. ----- HyperTalk script -----
  43. on mouseUp
  44.   go to first card
  45.   click at the loc of bkgnd button 9
  46. end mouseUp
  47.  
  48.  
  49.  
  50. -- part contents for background part 10
  51. ----- text -----
  52. Play will make musical sounds using the specified sound.  There are two sounds that come with HyperCard: boing and harpsichord.  Try clicking the Test Button to hear what "boing" sounds like.  
  53.  
  54. You can specify a series of notes to play using the sound. The notes are specified with the letters "a" through "g", representing the scale.  A number after the letter (1-7) will change octaves (4 is the middle octave).  
  55.  
  56. Try typing your own notes below.  If you're not very musical, you can copy the line at the bottom of the script and paste it into the handler. (The two dashed lines tell HyperCard that this is just a comment.  When you copy the line, don't copy the dashes.)  
  57.  
  58. Try replacing "boing" with "harpsichord" to see how it sounds. 
  59.  
  60. Although these two sounds are the only ones that come with HyperCard, you can make your own sounds with a little box called a digitizer and a microphone.  Then you can copy the sounds into HyperCard or a stack.  This stack has a sound in it called "bell".  Try replacing "boing" with "bell" to see how it sounds.
  61.  
  62. Digitized sounds can be made from any source.  Unfortunately, a sound in digitized form can take up a lot of space on a diskette (a few seconds can take up to 100k).  It's best to make short sounds and play them with a string of notes.
  63.  
  64. Click ? for more information on "play", writing music, and creating sounds.
  65.  
  66. -- part contents for background part 6
  67. ----- text -----
  68. Play
  69.  
  70. -- part contents for background part 9
  71. ----- text -----
  72. on mouseUp
  73.   play "boing"  c d e f g a b c5
  74. end mouseUp
  75.  
  76.  
  77.  
  78. -- play "boing"  tempo 380 b3 c#4 d e f# g a#3 g4 f# e d c# d r f#
  79.  
  80. -- part contents for background part 13
  81. ----- text -----
  82. on mouseUp
  83.   play "boing"  c d e f g a b c5
  84. end mouseUp
  85.  
  86.  
  87.  
  88. -- play "boing"  tempo 380 b3 c#4 d e f# g a#3 g4 f# e d c# d r f#